﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IntelligentCMS
{
    public partial class addpages : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CMSPageConfig newConfig = (CMSPageConfig)(LoadControl("CMSPageConfig.ascx"));



            if (Request.QueryString["ID"] != null)
            {
                if (Request.QueryString["ID"].Trim() != string.Empty)
                {
                    newConfig.ID = long.Parse(Request.QueryString["ID"]);
                    newConfig.Execute();

                }

            }


            thePanel.Controls.Add(newConfig);
            //theControls.Add(newConfig);
        }

        protected void Button_Done_Click(object sender, EventArgs e)
        {
            Response.Redirect("managepages.aspx");
        }
    }
}
